package org.sardine.aop.test_mock;

import org.apache.log4j.Logger;

public class MockServiceImpl implements MockService{
	
	private final Logger log = Logger.getLogger(MockServiceImpl.class);
	private String orderId = null;
	private String orderName = null;
	
	public MockServiceImpl(){
	}
	
	public MockServiceImpl(String orderId,String orderName){
		setOrder(orderId, orderName);
	}

	public String getOrderId() {
		log.info("getOrderId()");
		return this.orderId;
	}

	public String getOrderName() {
		log.info("getOrderName()");
		return this.orderName;
	}

	public void setOrder(String orderId,String orderName) {
		log.info("setOrder()");
		this.orderId = orderId;
		this.orderName = orderName;
	}
	
	public void hello(){
		log.info("hello() order is "+this.orderId+" "+this.orderName+" -- this is not interface method");
	}

	public void printlnOrder() {
		log.info("printlnOrder() order is "+this.orderId+" "+this.orderName);
		
	}

	public String description() {
		return "calling MockServiceImpl method";
	}

}
